displaying full details of the selected option from sample table